package com.hp.siminterface.webservice.impl;

import java.util.List;

import com.hp.siminterface.domain.HPUXNetworkDetails;
import com.hp.siminterface.persistence.HPUXNetworkDetailsMapper;
import com.hp.siminterface.webservice.HPUXNetworkDetailsService;

public class HPUXNetworkDetailsServiceImpl implements HPUXNetworkDetailsService {
	private HPUXNetworkDetailsMapper hpuxNetworkDetailsMapper;

	@Override
	public HPUXNetworkDetails[] getHPUXNetworkDetailsInfo() {
		List<HPUXNetworkDetails> hpuxNetworkDetailses = hpuxNetworkDetailsMapper
				.selectHPUXNetworkDetails();
		HPUXNetworkDetails[] hpuxNetworkDetailsArray = new HPUXNetworkDetails[hpuxNetworkDetailses
				.size()];
		int i = 0;
		for (HPUXNetworkDetails hpuxNetworkDetails : hpuxNetworkDetailses) {
			hpuxNetworkDetailsArray[i] = hpuxNetworkDetails;
			i++;
		}
		return hpuxNetworkDetailsArray;
	}

	public void setHpuxNetworkDetailsMapper(
			HPUXNetworkDetailsMapper hpuxNetworkDetailsMapper) {
		this.hpuxNetworkDetailsMapper = hpuxNetworkDetailsMapper;
	}

}
